var interval = setInterval(function(){
            $.ajax({
                type: "POST",
                url: "http://127.0.0.1:8000/diskcalculate",
                data: {
                allnum: $("#allnum").val(),
                startnum: $("#startnum").val(),
                func: $("#gender").val(),
                },
                success: function (data) {
                    var msg = eval("(" + data + ")");
                    $('#progress2').progress({
                        percent: msg["num"],
                        value: msg["value"]
                        all : msg["all"],
                        text: {
                            active: '正在扫描{all}号磁盘中的第{value}号'
                        }}
                    );
                    document.getElementById("text").innerHTML = msg["ans"];
                },
                error: function (message) {
                    console.log(message);
                }
            });}, 1000)